﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace LtccApi.Models
{
    /// <summary>
    /// 验证码
    /// </summary>
    [Table("bj_check_code")]
    public class CheckCode
    {
        /// <summary>
        /// 序号
        /// </summary>
        /// <value>The identifier.</value>
        [Column("id")]
        public int ID { get; set; }

        /// <summary>
        /// 用户表ID
        /// </summary>
        [Column("user_id")]
        public int UserId { get; set; }

        /// <summary>
        /// 用户表
        /// </summary>
        [NotMapped]
        public User User { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        [Column("check_code")]
        public string Code { get; set; }

        /// <summary>
        /// 当前时间
        /// </summary>
        [Column("generate_time")]
        public string CurrentTime { get; set; }

    }
}
